| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | var jsondash = require('../flask_jsondash/static/js/app'); |
||
| 3 | describe('dashEvents', function(){ |
||
| 4 | it('Should recognize all events', function(){ |
||
| 5 | function testEvent(name) { |
||
| 6 | $('body').on(name, function(e){ |
||
|
|
|||
| 7 | console.log('Event ran: ' + name); |
||
| 8 | }); |
||
| 9 | } |
||
| 10 | $.each(EVENTS, function(k, name){ |
||
| 11 | testEvent(name); |
||
| 12 | }); |
||
| 13 | // expect(jsondash.util.scaleStr('50%', '50%')).toBe('scale(50%,50%)'); |
||
| 14 | }); |
||
| 15 | }); |
||
| 16 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.